 var x = window.x || {};
            x.creat = function(type,info){
               
               if(type == 'N' || type == 'n' ){
                   type = "label label-danger";
               }

               if(type == 'Y' || type == 'y' || type == null){
                 type = "label label-info";
               }

               if(info == null){
                info = '参数错误';
               }
               
               
                this.t = 1;
                this.b = 60;
                this.c = 25;
                this.d = 15;
                this.op = 1;
                this.div = document.createElement("mySuccess");
                this.div.style.height = "35px";
                this.div.style.width = "70px";
                this.div.style.position = "absolute";
                this.div.style.left = "50%";
                this.div.style.marginLeft = "-50px"
                this.div.style.marginTop = "-20px"
                this.div.innerText = info
                this.div.className = type	
                this.div.style.lineHeight = this.div.style.height
                this.div.style.textAlign = "center";
                this.div.style.fontWeight = "bold";
                this.div.style.top = (this.b + "%");
                document.body.appendChild(this.div);
                this.run();
            }
            
            x.creat.prototype = {
                run: function(){
                    var me = this;
                    this.div.style.top = -this.c * (this.t / this.d) * (this.t / this.d) + this.b + "%";
                    this.t++;
                    this.q = setTimeout(function(){
                        me.run()
                    }, 15)
                    if (this.t == this.d) {
                        clearTimeout(me.q);
                        setTimeout(function(){
                            me.alpha();
                        }, 500);
                    }
                },
                alpha: function(){
                    var me = this;
                    if ("\v" == "v") {
                        this.div.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + this.op * 100 + ")";
                        this.div.style.filter = "alpha(opacity=" + this.op * 100 + ")";
                        ;
                    }
                    else {
                        this.div.style.opacity = this.op
                    }
                    this.op -= 0.02;
                    this.w = setTimeout(function(){
                        me.alpha()
                    }, 25)
                    if (this.op <= 0) {
                        clearTimeout(this.w);
                        document.body.removeChild(me.div);
                    }
                }
            }
          	 